package team.tunan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import team.tunan.dto.StockPageDto;
import team.tunan.entity.Stock;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 产品表	 服务类
 * </p>
 *
 * @author sqx
 * @since 2023-12-24
 */
public interface IStockService extends IService<Stock> {

    int insertStock(Stock stock);

    int deleteStock(String id);

    int updateStock(Stock stock);


    void addStockNumber(Integer id, Integer stockinQuantity);

    void reduceStockNumber(Integer stockId, Integer number);

    Page<Stock> selectPage(StockPageDto stockPageDto);

    Stock selectByStockId(Integer stockId);
}
